<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/bootbox.min.js',2); ?>
<div class="page-header">
							通过的学分：<span class="label label-success arrowed-in arrowed-in-right"><?php echo $total; ?></span>
</div>
<div class="row">
	<div class="col-xs-12">
		<div class="row">
			<div class="col-sm-12">
										<div class="tabbable">
											<ul class="nav nav-tabs padding-12 tab-color-blue background-blue" id="myTab4">
												<li class="active">
													<a data-toggle="tab" href="#form1"><i class="icon-flag"></i>师范生技能竞赛</a>
												</li>
                                                <li class="">
													<a data-toggle="tab" href="#form2">自主学习及学生社团</a>
												</li>
												
												<li class="">
													<a data-toggle="tab" href="#form3">工作及社会实践</a>
												</li>
											</ul>

											<div class="tab-content">
												<div id="form1" class="tab-pane active">
												   <?php echo  $this->renderPartial("_sfs_r",array('gsp'=>$gsp_sfs));?>
												</div>
                                                <div id="form2" class="tab-pane">
													<?php echo  $this->renderPartial("_zzxx_r",array('gsp'=>$gsp_zzxx));?>
												</div>
												<div id="form3" class="tab-pane">
													<?php echo  $this->renderPartial("_gz_r",array('gsp'=>$gsp_gz));?>
												</div>

												
											</div>
										</div>
						</div>
				</div>
		</div>
</div>
<script type="text/javascript">
  jQuery(function(){
	  $('[delete-stu-gsp]').on('click',function(){
		  var id  = $(this).attr('delete-stu-gsp');
		  bootbox.confirm("确定删除吗？",function(result){
			 if(result){
				$.post("<?php echo Yii::app()->createUrl('stugsp/deletegsp'); ?>",{'stuGspItemId':id},function(data){
					data  = $.parseJSON(data);
					bootbox.alert(data['msg'],function(){
						if(data['code'] == '200'){
							$('#'+id).fadeToggle('800','linear',function(){
								$(this).remove();
								
							});
						}
						
					});
					
				}); 
				 
			 } 
			  
		  });
		  
	  });
	  
  })
</script>